import {http} from '@/utils/http'

// 添加专题
export function addArticleTopics(data:any) {
    return http.post<any>('/admin/articleTopics/addArticleTopics', data)
}

// 修改专题
export function updateArticleTopics(data:any) {
    return http.post<any>('/admin/articleTopics/updateArticleTopics', data)
}

// 删除专题
export function deleteArticleTopics(id:string) {
    return http.post<any>('/admin/articleTopics/deleteArticleTopics/'+id)
}

// 获取专题详情
export function getArticleTopics(id:any) {
    return http.post<any>('/admin/articleTopics/getArticleTopics/'+id)
}

// 获取专题分页列表
export function getArticleTopicsPage(data:any) {
    return http.post<any>('/admin/articleTopics/getArticleTopicsPage', data)
}

// 获取专题列表
export function getArticleTopicsList(data:any) {
    return http.post<any>('/admin/articleTopics/getArticleTopicsList', data)
}



















